﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditToDo.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Calendar.EditToDo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/Default/Calendar/Style/Calendar.css" />
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript">
        var jrddlUser = new JskitRichDropDownList("jrddlUser");
        var jrddlMember = new JskitRichDropDownList("jrddlMember");
        var jrddlItem = new JskitRichDropDownList("jrddlItem");
        jrddlMember.setIsMultiSelect(true);
        jrddlMember.setColumns(["姓名", "部门"]);

        function PageOnLoad() {
            jrddlUser.deploy(fixId("txt_AssignTo"), fixId("hid_AssignTo"), "Ws/_User.aspx?mode=rddl&rk=");
            jrddlMember.deploy(fixId("txt_Members"), fixId("hid_Members"), "Ws/_User.aspx?mode=rddl&rk=");
            jrddlItem.deploy(fixId("txt_Item"), fixId("hid_Item"), "Ws/_Item.aspx?act=todo");
        }
        function StartSwitch(sender, e) {
            $("#"+fixid("txt_StartToReal")).value = $("#" + fixId("txt_StartToPlan")).value;
        }
    </script>
 </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <div class="action_bar">
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Calendar/List.aspx')" value="取消" />
    </div>
    <fieldset>
        <legend>待办事项信息</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">事项类型：</span>
                </td>
                <td class="edit_form_item_content" colspan="4">
                    <asp:DropDownList runat="server" ID="ddl_TodoType"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    归属于：
                </td>
                <td class="edit_form_item_content" colspan="4">
                    <asp:TextBox runat="server" ID="txt_Item" Width="480px"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_Item" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">事项名称：</span>
                </td>
                <td class="edit_form_item_content" colspan="4">
                    <asp:TextBox runat="server" ID="txt_TodoName" Width="500px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">事项等级：</span>
                </td>
                <td class="edit_form_item_content" colspan="4">
                    <asp:RadioButtonList runat="server" id="rbl_TodoLevel" RepeatDirection="Horizontal"></asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">消耗时间：</span>
                </td>
                <td class="edit_form_item_content" colspan="4">
                    <asp:TextBox runat="server" ID="txt_CostHours" Text="1"></asp:TextBox> 小时(最小单位为0.1小时)
                    <font style="color:#00aa00;">事项耗时用来统计实际发生的工作量，耗时不通过计算得出，请填写你认为该事项占用的时间。</font>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">日期：</span>
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_Occur" onclick="jskitDateSelector.openMode(this,event,'d');"></asp:TextBox>
                    <font style="color:#00aa00;">事项实际发生的日期。</font>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    开始时间：
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_StartHour" MaxLength="2" Width="40px"></asp:TextBox> 时-
                    <asp:TextBox runat="server" ID="txt_StartMinute" MaxLength="2" Width="40px"></asp:TextBox> 分
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title" colspan="3">
                    结束时间：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_EndHour" MaxLength="2" Width="40px"></asp:TextBox> 时-
                    <asp:TextBox runat="server" ID="txt_EndMinute" MaxLength="2" Width="40px"></asp:TextBox> 分
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    指派给：
                </td>
                <td class="edit_form_item_content" colspan="4">
                    <asp:TextBox runat="server" ID="txt_AssignTo"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_AssignTo" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    相关人：
                </td>
                <td class="edit_form_item_content" colspan="4">
                    <asp:TextBox runat="server" ID="txt_Members" Width="480px"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_Members" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    私有事项：
                </td>
                <td class="edit_form_item_content" colspan="4">
                    <asp:RadioButtonList runat="server" ID="rbl_Private" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0" Selected="True" Text="否"></asp:ListItem>
                        <asp:ListItem Value="1" Text="是"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    工作内容：
                </td>
                <td class="edit_form_item_content" colspan="4">
                    <asp:TextBox runat="server" ID="txt_Content" TextMode="MultiLine" Width="500px" Height="300px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
